<div class="bg-light lter b-b wrapper-md">
    <h1 class="m-n font-thin h3">财务管理</h1>
</div>

<div class="wrapper-md">
    <div class="panel panel-default">
        <div class="panel-heading">
            红包和体验金到账
        </div>
        <toaster-container toaster-options="{'position-class': 'toast-center', 'close-button':true}"></toaster-container>
        <div class="panel-body b-b b-light">
            <div class="col-sm-3" ng-controller="DatepickerDemoCtrl">
                <label><font><font>日期:</font></font></label>
                <p class="input-group">
                    <input type="text" class="form-control" datepicker-popup="{{format}}" ng-click="open($event)" ng-model="RedAndEGList.time"
                        is-open="opened" datepicker-options="dateOptions" ng-required="true" close-text="Close" />
                    <span class="input-group-btn">
                        <button type="button" class="btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                    </span>
                </p>
                <button class="btn btn-info btn-addon" ng-if='!graybtn' ng-click="redsearch()">查询</button>
                <button class="btn btn-light btn-addon" ng-if='graybtn'>查询</button>
            </div>
        </div>
        <div class="panel-body b-b b-light">
            <div class="col-sm-4"><span>历史已到账红包总和&nbsp;:&nbsp;</span><span ng-bind="RedStatistic.HistoryTotal"></span>&nbsp;元</div>
            <div class="col-sm-4"><span>当前已到账红包总和&nbsp;:&nbsp;</span><span ng-bind="RedStatistic.TodayTotal"></span>&nbsp;元</div>
            <div class="col-sm-4"><span>当前有效未激活红包总金额&nbsp;:&nbsp;</span><span ng-bind="RedStatistic.EstimateMaxTotal"></span>&nbsp;元</div>
        </div>
        <div class="panel-body b-b b-light">
            <div class="col-sm-4"><span>历史已到账体验金总和&nbsp;:&nbsp;</span><span ng-bind="RedStatistic.TYJHistoryTotal"></span>&nbsp;元</div>
            <div class="col-sm-4"><span>当前已到账体验金总和&nbsp;:&nbsp;</span><span ng-bind="RedStatistic.TYJTodayTotal"></span>&nbsp;元</div>
            <div class="col-sm-4"><span>当前随时可激活的体验金总和&nbsp;:&nbsp;</span><span ng-bind="RedStatistic.TYJEstimateMaxTotal"></span>&nbsp;元</div>
        </div>
        <div class="table-responsive">
            <table id="tab" class="table table-striped m-b-none">
                <thead>
                    <tr>
                        <th style="width:10%">姓名</th>
                        <th style="width:10%">用户ID</th>
                        <th style="width:10%">类型</th>
                        <th style="width:20%">金额</th>
                        <th style="width:15%">到账时间</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-if="RedAndEGListone==''">
                        <td colspan="9">当前无任何数据</td>
                    </tr>
                    <tr ng-repeat="obj in RedAndEGListone">
                        <td ng-bind="obj.FullName"></td>
                        <td ng-bind="obj.UserId"></td>
                        <td ng-bind="obj.UserTransferType==8 ? '体验金':'红包'"></td>
                        <td ng-bind="obj.Price"></td>
                        <td ng-bind="obj.FinishTime"></td>
                    </tr>
                </tbody>
            </table>
        </div>

    </div>
</div>